﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="Banner.ascx.cs" Inherits="Banner" %>
<%@ Register Assembly="FredCK.FCKeditorV2" Namespace="FredCK.FCKeditorV2" TagPrefix="FCKeditorV2" %>
<%@ Register Src="../Common/ImagePath.ascx" TagName="ImagePath" TagPrefix="uc1" %>
<table cellpadding="0" cellspacing="0" width="100%" class="admintable" runat="server" visible="false">
    <tr id="Tr1" runat="server" visible="true">
        <td class="lable">
            Ngôn ngữ:
        </td>
        <td>
            <asp:DropDownList ID="cmbLanguage" runat="server" Width="112px" AutoPostBack="True"
                OnSelectedIndexChanged="cmbLanguage_SelectedIndexChanged">
                <asp:ListItem Text="Vietnamese" Selected="True" Value="vi-VN"></asp:ListItem>
                <asp:ListItem Value="en-US">English</asp:ListItem>
            </asp:DropDownList>
        </td>
    </tr>
    <tr id="Tr2" runat="server" visible="true">
        <td class="lable">
            Loại quảng cáo:
        </td>
        <td>
            <asp:DropDownList ID="cmbLoaiQC" runat="server" Width="112px" AutoPostBack="True">
                <asp:ListItem Text="Media" Selected="True" Value="Media"></asp:ListItem>
                <asp:ListItem Value="Text">Text</asp:ListItem>
            </asp:DropDownList>
        </td>
    </tr>
</table>
<table cellpadding="0" cellspacing="0" width="100%" class="admintable">
    <tr>
        <td class="lable" valign="top">
            Trang hiển thị:
        </td>
        <td>
            <asp:DropDownList ID="cmbPosition" runat="server" Width="112px">
                <asp:ListItem Text="Top banner" Selected="True" Value="TopBanner"></asp:ListItem>                            
            </asp:DropDownList>
        </td>
    </tr>
    <tr>
        <td class="lable" valign="top">
            Tiêu đề:
        </td>
        <td>
            <asp:TextBox ID="txtTitle" runat="server" Width="400px"></asp:TextBox>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" 
                ControlToValidate="txtTitle" ErrorMessage="*"></asp:RequiredFieldValidator>
        </td>
    </tr>
    <tr>
        <td class="lable" valign="top">
            URL:
        </td>
        <td>
            <asp:TextBox ID="txtUrl" runat="server" Width="400px"></asp:TextBox>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" 
                ControlToValidate="txtUrl" ErrorMessage="*" SetFocusOnError="True"></asp:RequiredFieldValidator>
        </td>
    </tr>
    <tr>
        <td class="lable" valign="top">
            Target:
        </td>
        <td>
            <asp:DropDownList ID="cmbTarget" runat="server" Width="79px">
                <asp:ListItem Selected="True">_blank</asp:ListItem>
                <asp:ListItem>_parent</asp:ListItem>
                <asp:ListItem>_search</asp:ListItem>
                <asp:ListItem>_self</asp:ListItem>
                <asp:ListItem>_top</asp:ListItem>
            </asp:DropDownList>
        </td>
    </tr>
    <tr>
        <td class="lable" valign="top">
            &nbsp;
        </td>
        <td>
            <uc1:ImagePath ID="ImagePath1" runat="server" RequiredFieldValidator="True" MediaTitle="Media" />
        </td>
    </tr>
    <tr>
        <td class="lable">
            Độ dài:
        </td>
        <td>
            <asp:TextBox ID="txtWidth" runat="server" Width="79px" CssClass="txtBox">170</asp:TextBox>
            px
            <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="txtWidth"
                ErrorMessage="*" SetFocusOnError="True">
            </asp:RequiredFieldValidator>
            <asp:RegularExpressionValidator ID="validWidth" runat="server" ControlToValidate="txtWidth"
                ErrorMessage="Must be a number less than 171" SetFocusOnError="True" ValidationExpression="[0-9]*">Giá trị phải là số</asp:RegularExpressionValidator>
        </td>
    </tr>
    <tr>
        <td class="lable">
            Độ cao:
        </td>
        <td>
            <asp:TextBox ID="txtHeight" runat="server" Width="79px" CssClass="txtBox">
            </asp:TextBox>
            px
            <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="txtHeight"
                ErrorMessage="*" SetFocusOnError="True">
            </asp:RequiredFieldValidator>
            <asp:RegularExpressionValidator ID="validHeight" runat="server" ControlToValidate="txtHeight"
                ErrorMessage="Must be a number less than 501" SetFocusOnError="True" ValidationExpression="[0-9]*">Giá trị phải là số</asp:RegularExpressionValidator>
        </td>
    </tr>
    <tr>
        <td class="lable">
            Hiển thị:
        </td>
        <td>
            <asp:CheckBox ID="chkActive" runat="server" />
        </td>
    </tr>
</table>
